Varaible Add/Modify of Script Editor

 

A dialog box as shown in <Figure 1> appears if the button or of variable area in script editor is selected.

 

<Figure 1> Example of variable modify dialog box

 

In <Figure 1> variables can be added or modified by setting variable types, variable names, array sizes and inital values.

The variable name of the add/modify variable dialog box may be entered in English, Korean and numbers, and the array size may be between 1 and 100,000, and the initial value is entered (separated by commas) as many as the number of arrays.

However, if you do not enter an initial value, it is set to a value of 0 by default.

<Table 1> is an example of a variable name used in the script editing area according to the array size.

<Table 2> shows the byte size and range of value according to the type that can be set in variable add/modify.

 

Variable Name Array Size Variable Name Used in the Edit Area
ex 1 ex
5 ex[0], ex[1], ex[2], ex[3], ex[4]
20 ex[0], ex[1], ¡¦, ex[19]

<Table 1> Example of a variable name used in the script edit area according to array size

 

Type

Byte

Description

Range of Value

sbyte

1

A signed 1-byte integer

-128 ~ 127

byte

An unsigned 1-byte integer

0 ~ 255

char

2

Character

0 ~ 65,535

short

a signed 2-byte integer

-32,768 ~ 32,767

ushort

an unsigned 2-byte integer

0 ~ 65,535

int

4

a signed 4-byte integer

–2,147,483,648 ~ 2,147,483,647

uint

an unsigned 4-byte integer

0 ~ 4,294,967,295

long

8

a signed 8-byte integer

–9,223,372,036,854,775,808 ~ 9,223,372,036,854,775,807

ulong

an unsigned 8-byte integer

0 ~ 18,446,744,073,709,551,615

float

4

A 4-byte real number

3.4E +/- 38 (mantissa : 7 digits)

double

8

A 8-byte real number

1.7E +/- 308 (mantissa : 15 digits)

string

(# of characters) x 2

String

as many inputs as possible

<Table 2> Byte size and range of value by variable type

 

Related Helps)

How to use script editor

Script help